﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="buy.aspx.cs" Inherits="buy" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>宝马俱乐部</title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />

    <script src="JS/jquery-1.7.2.js" type="text/javascript"></script>
    
    <script language="javascript" type="text/javascript">
    function cik(o){
    var id=o.id;
    $("#img").attr("src","img/tu"+id+".jpg");
    }
    
    $(document).ready(function(){
    var carID=document.getElementById("Hidden1").value;
     if(carID=="BMW001_1系"){
    $("#img1").attr("src","img/tu1.jpg");
    }
     if(carID=="BMW001_3系"){
    $("#img1").attr("src","img/tu2.jpg");
    }
     if(carID=="BMW001_5系"){
    $("#img1").attr("src","img/tu3.jpg");
    }
     if(carID=="BMW001_6系"){
    $("#img1").attr("src","img/tu4.jpg");
    }
     if(carID=="BMW001_7系"){
    $("#img1").attr("src","img/tu5.jpg");
    }
     if(carID=="BMW001_X1"){
    $("#img1").attr("src","img/tu6.jpg");
    }
     if(carID=="BMW001_X3"){
    $("#img1").attr("src","img/tu7.jpg");
    }
     if(carID=="BMW001_X5"){
    $("#img1").attr("src","img/tu8.jpg");
    }
     if(carID=="BMW001_X6"){
    $("#img1").attr("src","img/tu9.jpg");
    }
     if(carID=="BMW001_M系"){
    $("#img1").attr("src","img/tu10.jpg");
    }
     if(carID=="BMW001_Z4"){
    $("#img1").attr("src","img/tu11.jpg");
    }
    })
    </script>
</head>
<body>
<center>
    <form id="form1" runat="server">
    <input id="Hidden1" type="hidden" value="<%=Session["carID"] %>" />
    <div style="width:1000px; height:auto">
    <div style="height:92px; width:1000px">
    <span style="height:92px; float:left; margin-right:25px">
    <img src="img/logo.jpg" alt="公司log" />
    </span>
    <span class="sp">
    光辉宝马贸易有限公司
    </span>
    </div>
    <div style="height:25px; width:988px"></div>
    <div style="height:25px; width:988px">
    <span>
    <a id="1" href="JavaScript:void(0)" class="sp_a" onclick="cik(this)">1系</a>
    <a id="2" href="JavaScript:void(0)" class="sp_aa" onclick="cik(this)">3系</a>
    <a id="3" href="JavaScript:void(0)" class="sp_aa" onclick="cik(this)">5系</a>
    <a id="4" href="JavaScript:void(0)" class="sp_aa" onclick="cik(this)">6系</a>
    <a id="5" href="JavaScript:void(0)" class="sp_aa" onclick="cik(this)">7系</a>
    <a id="6" href="JavaScript:void(0)" class="sp_aa" onclick="cik(this)">X1</a>
    <a id="7" href="JavaScript:void(0)" class="sp_aa" onclick="cik(this)">X3</a>
    <a id="8" href="JavaScript:void(0)" class="sp_aa" onclick="cik(this)">X5</a>
    <a id="9" href="JavaScript:void(0)" class="sp_aa" onclick="cik(this)">X6</a>
    <a id="10" href="JavaScript:void(0)" class="sp_aa" onclick="cik(this)">M系</a>
    <a id="11" href="JavaScript:void(0)" class="sp_aa" onclick="cik(this)">Z4</a>
    </span>
    </div>
    <div style="width:988px; height:350px">
    <img id="img1" src="img/tu1.jpg" alt="宝马系列" />
    </div>
    <div style="height:10px;"></div>
    <div style="height:10px; clear:both"></div>
    <div style="height:auto; width:988px">
    <div style="width:988px; height:auto;"> 
    <table style="margin-top:10px; width:100%">
     <tr style="height:50px">
    <td style="width:90%; border:solid 1px #ccc; font-size:small; font-weight:bolder; text-align:center; color:Gray" colspan="2">
        为了方便您的购车预定，请正确填写一下信息！
    </td>
    </tr>
    <tr style="height:35px">
    <td style="width:18%; border:solid 1px #ccc; font-size:small; text-align:right">
    姓名：
    </td>
    <td style="width:23%; border:solid 1px #ccc; text-align:left">
        <asp:TextBox ID="txbname" runat="server"></asp:TextBox>   
    </td>
    </tr>
    <tr style="height:35px">
    <td style="width:18%; border:solid 1px #ccc; font-size:small; text-align:right">
        性别：</td>
    <td style="width:23%; border:solid 1px #ccc; text-align:left">
        <asp:DropDownList ID="sex" runat="server">
            <asp:ListItem>男</asp:ListItem>
            <asp:ListItem>女</asp:ListItem>
        </asp:DropDownList>
    </td>
    </tr>
    <tr style="height:35px">
    <td style="width:18%; border:solid 1px #ccc; font-size:small; text-align:right">
    联系方式：
    </td>
    <td style="width:23%; border:solid 1px #ccc; text-align:left">
        <asp:TextBox ID="txbtel" runat="server"></asp:TextBox>
    </td>
    </tr>
    <tr style="height:35px">
    <td style="width:18%; border:solid 1px #ccc; font-size:small; text-align:right">
        联系地址：
    </td>
    <td style="width:23%; border:solid 1px #ccc; text-align:left">
        <asp:TextBox ID="txbaddress" runat="server"></asp:TextBox>
    </td>
    </tr>
    <tr style="height:35px">
    <td style="width:18%; border:solid 1px #ccc; font-size:small; text-align:right">
        交货日期：
    </td>
    <td style="width:23%; border:solid 1px #ccc; text-align:left">
        <asp:TextBox ID="txbdate" runat="server"></asp:TextBox>
    </td>
    </tr>
    <tr style="height:35px">
    <td style="width:18%; border:solid 1px #ccc; font-size:small; text-align:right">
        所购车型：<br />
        <br />
        车型颜色：
    </td>
    <td style="width:23%; border:solid 1px #ccc; text-align:left">
        <asp:TextBox ID="txbcar" runat="server"></asp:TextBox>
                            <br />
        <br />
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </td>
    </tr>
     <tr style="height:40px">
    <td style="width:18%; border:solid 1px #ccc; font-size:small; text-align:right">
    
    </td>
    <td style="width:23%; border:solid 1px #ccc; text-align:center">
        <asp:Button ID="Button1" runat="server" Text="确定预约" onclick="Button1_Click" />
    </td>
    </tr>
    </table>
    </div>
    </div>
    <div style="clear:both; height:0px"></div>
   <div class="bodiv">
   <p class="boP"> Copyright © 2012 HUUC. All Rights Reserved. xxxx 版权所有 豫ICP备xxxx号</p>
   <p class="boP">地址：xxxxx&nbsp;&nbsp; 邮编：xxxx Email：admin@xxxx.edu.cn&nbsp;&nbsp;技术支持Eamil：xxxx@163.com</p>
   </div>
    </div>
    </form>
    </center>
    
</body>
</html>



